<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link href="../css/bootstrap.min.css" rel="stylesheet">
  <script src="../js/bootstrap.bundle.min.js"></script>
  <script src="../js/axios.min.js"></script>

</head>
<style>
  html,
  body {
    height: 100%;
  }

  .active {
    display: block;
  }
</style>

<body style="display: flex;">
  <!-- <div class="container" style="height:100%;display: flex;"> -->
  <div class="d-flex flex-column flex-shrink-0 p-3 text-white bg-dark"
    style="width: 280px; background-color: rgb(11, 55, 112); opacity:.8;height:100%">
    <a class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none">
      <svg class="bi me-2" width="40" height="32">
        <use xlink:href="#bootstrap" />
      </svg>
      <span class="fs-4">学生管理系统</span>
    </a>
    <hr>
    <ul class="nav nav-pills flex-column mb-auto">
      <li class="nav-item" id="li1">
        <a href="#" class="nav-link text-white" aria-current="page">
          首页
        </a>
      </li>
      <li id="li2">
        <a href="#" class="nav-link text-white" aria-current="page">
          管理员表
        </a>
      </li>
      <li id="li3">
        <a href="#" class="nav-link text-white" aria-current="page">
          读者注册信息表
        </a>
      </li>
      <li id="li4">
        <a href="#" class="nav-link active">
          读者借书登记
        </a>
      </li>
      <li id="li5">
        <a href="#" class="nav-link text-white" aria-current="page">
          图书信息详情表
        </a>
      </li>
      <li id="li6">
        <a href="#" class="nav-link text-white" aria-current="page">
          图书分类
        </a>
      </li>
      <li id="li7">
        <a href="#" class="nav-link text-white" aria-current="page">
          图书借阅信息表
        </a>
      </li>
    </ul>
    <hr>

  </div>
  <div class="b-example-divider" style="height: 100%;width:calc(100% - 280px);">
    <div class="header1" style="height:70px;background-color:rgb(11, 55, 112); opacity:.8"></div>
    <div class="scoreList" style="height:calc(100% - 70px);background-color:#fff;padding:50px;">
      <div class="list">
        <table class="table table-bordered">

          <button type="button" class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#myModal"
            class="btn btn-primary" style="margin-bottom: 20px;">
            添加信息
          </button>

          <!-- 模态框 -->
          <div class="modal fade" id="myModal">
            <div class="modal-dialog">
              <div class="modal-content">

                <!-- 模态框头部 -->
                <div class="modal-header">
                  <h4 class="modal-title">添加读者信息</h4>
                  <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
                </div>

                <!-- 模态框内容 -->
                <div class="modal-body" style="margin-left: 20px;">
                  <!-- 模态框内容.. -->
                  读者编号:<input type="text" placeholder="请输入读者编号" id="reader"></br>
                  图书编号:<input type="text" placeholder="请输入图书编号" style="margin-top: 15px;" id="book"></br>
                  借出时间:<input type="text" placeholder="请输入借出时间" style="margin-top: 15px;" id="lendtime"></br>
                  返还时间:<input type="text" placeholder="请输入返还时间" style="margin-top: 15px;" id="backtime"></br>
                  价格:<input type="text" placeholder="请输入价格" style="margin-top: 15px;" id="price"></br>
                  状态:<input type="text" placeholder="请输入状态" style="margin-top: 15px;" id="state"></br>

                </div>

                <!-- 模态框底部 -->
                <div class="modal-footer">
                  <button type="button" class="btn btn-primary" onclick="Add()" data-bs-dismiss="modal">确定</button>
                  <button type="button" class="btn btn-danger" data-bs-dismiss="modal">关闭</button>
                </div>

              </div>
            </div>
          </div>
          <thead>
            <tr align="center">
              <th>读者编号</th>
              <th>图书编号</th>
              <th>借出时间</th>
              <th>返还时间</th>
              <th>状态</th>
              <th>价格</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody align="center" class="tbody">

          </tbody>
        </table>
      </div>
    </div>
  </div>

  <!-- 点击 "修改"  修改部分的模态框 -->
  <div class="modal fade" id="myModal1">
    <div class="modal-dialog">
      <div class="modal-content">

        <!-- 模态框头部 -->
        <div class="modal-header">
          <h4 class="modal-title">修改图书信息</h4>
          <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
        </div>

        <!-- 模态框内容 -->
        <div class="modal-body" style="margin-left: 20px;">
          <!-- 模态框内容.. -->
          <input type="hidden" id="id1"></br>
          读者编号:<input type="text" placeholder="请输入读者编号" id="reader1"></br>
          图书编号:<input type="text" placeholder="请输入图书编号" style="margin-top: 15px;" id="book1"></br>
          借出时间:<input type="text" placeholder="请输入借出时间" style="margin-top: 15px;" id="lendtime1"></br>
          返还时间:<input type="text" placeholder="请输入返还时间" style="margin-top: 15px;" id="backtime1"></br>
          价格:<input type="text" placeholder="请输入价格" style="margin-top: 15px;" id="price1"></br>
          状态:<input type="text" placeholder="请输入状态" style="margin-top: 15px;" id="state1"></br>

        </div>

        <!-- 模态框底部 -->
        <div class="modal-footer">
          <button type="button" class="btn btn-primary" onclick="Add()" data-bs-dismiss="modal">确定</button>
          <button type="button" class="btn btn-danger" data-bs-dismiss="modal">关闭</button>
        </div>

      </div>
    </div>
  </div>
  <script src="../js/skip.js"></script>
</body>

</html>